﻿using System;

namespace OestsCommon.Model
{
    public class Paper
    {
        public int Id { get; set; }
        /// <summary>
        /// 试卷名称
        /// </summary>
        public string Name
        {
            get;
            set;
        }

        public PaperType PaperType
        {
            get;
            set;
        }
        /// <summary>
        /// 组卷类型
        /// </summary>
        public CombType CombType
        {
            get;
            set;
        }

        /// <summary>
        /// 所属项目
        /// </summary>
        public int ProjectId { get; set; }

        ///// <summary>
        ///// 试卷中的任务
        ///// </summary>
        //public List<TaskModel> Tasks { get; set; }

        /// <summary>
        /// 使用次数
        /// </summary>
        public int UseCount { get; set; }


        /// <summary>
        /// 创建试卷的教员
        /// </summary>
        public int TeacherId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
    /// <summary>
    /// 试卷类型
    /// </summary>
    public enum PaperType
    {
        Theory,
        Operate

    }
    /// <summary>
    /// 试卷组卷类型
    /// </summary>
    public enum CombType
    {
        Fixed,
        Random
    }

}
